package com.example.tests;

public class ContactCreationTests extends TestBase {

	@org.testng.annotations.Test
	public void testNonEmptyContactCreation() throws Exception {
		ContactData contact = new ContactData();
		contact.firstName = "Tanya";
		contact.lastName = "Kapriyan";
		contact.primaryHomeAddress = "5701 N Sheridan";
		contact.homePhone = "3129277671";
		contact.mobilePhone = "3129277671";
		contact.workPhone = "31292177412";
		contact.phone2 = "123654789";
		contact.email1 = "tkapriyan@gmail.com";
		contact.email2 = "tka@gngj.com";
		contact.dayOfBirth = "7";
		contact.monthOfBirth = "March";
		contact.yearOfBirth = "1984";
		contact.address2 = "5701";
		contact.contactGroupName = "New Group Name";
		app.getNavigationHelper().openMainPage();
		app.getNavigationHelper().goToContactCreationPage();
		app.getContactHelper().initContactCreation();
		app.getContactHelper().fillContactForm(contact);
		app.getContactHelper().submitContactForm();
		app.getNavigationHelper().openMainPage();
	}

	@org.testng.annotations.Test
	public void testEmptyContactCreation() throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getNavigationHelper().goToContactCreationPage();
		app.getContactHelper().initContactCreation();
		app.getContactHelper().fillContactForm(
				new ContactData("", "", "", "", "", "", "", "", null, null, "",
						"", "", ""));
		app.getContactHelper().submitContactForm();
		app.getNavigationHelper().openMainPage();
	}

}
